public class Trapezoid

	{
		double height;
		double base1;
		double base2;
		double s1;
		double s2;
		double b1;
		double b2;
	
	
		public Trapezoid(double height, double base1, double base2)	
		{
			this.height = height;
         this.base1 = base1;
			this.base2 = base2;
        
		}

		public Trapezoid (double b1, double b2, double s1, double s2)
		{
			this.b1=b1;
			this.b2=b2;
			this.s1=s1;
			this.s2=s2;
		}
				
		public double getArea()
		{
		
			return (((base1+base2)/2)*height);
		}
		
		public double getPerimeter()
		{
		
			return (s1+s2+b1+b2);
			
		}
		
	}